using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using PlugNT.Cms.Page;

namespace PlugNT.Cms.Web.Admin.Pre_Systems
{
    public partial class Pre_UploadImage : AdminPager
    {
        private static string waterpath = "null";
        protected void Page_Load(object sender, EventArgs e)
        {

            this.CheckPower();


            this.CheckReadOnly();


            uploadimgae.UploadPath = PlugNT.Cms.Custom.WebConfig.UploadImgPath.Trim();    
            if (waterpath == "null")
            {
                waterpath = Server.MapPath(PlugNT.Cms.Custom.WebConfig.WaterImagePath);
            }
            if (PlugNT.Cms.Custom.WebConfig.WaterType == "1")
            {
                uploadimgae.WaterText = PlugNT.Cms.Custom.WebConfig.WaterTxt;
            }
            else
            {
                uploadimgae.WaterPath = waterpath;
                uploadimgae.WaterPostion = PlugNT.Cms.Custom.WebConfig.WaterStatus;
            }
            string isall = Request.QueryString["a"] == null ? "" : Request.QueryString["a"].Trim();
            string sheight = Request.QueryString["h"] == null ? "" : Request.QueryString["h"].Trim()+"px";
            string ctype = Request.QueryString["t"] == null ? "" : Request.QueryString["t"].Trim();
            string objstring=Request.QueryString["s"] == null ? "" : Request.QueryString["s"].Trim();
            uploadimgae.IsFullScreen = isall;
            uploadimgae.ScreenHeight = sheight;
            uploadimgae.ClientObjectType = ctype;
            uploadimgae.ClientObjectString = objstring;
            
        }

        protected void uploadimgae_UploadChanged(object sender, EventArgs e)
        {

        }
    }
}

